package community.hospital.annotation;

import community.hospital.validation.StateValidation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author yindingjie
 */
@Documented
@Constraint(validatedBy = {StateValidation.class})
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface CheckState {
    String message() default "状态码非法！";

    Class<?>[] groups() default { };

    Class<? extends Payload>[] payload() default { };
}
